const express = require('express')
const router = express.Router()
const { submitRateInfo, getRateInfo } = require('../../controller/web/EvaluateController')

// 导入JWT拦截中间件
const checkTokenMiddleware = require('../../middlewares/checkTokenMiddleware')

// 用户提交房源评价信息
router.post('/evaluate', checkTokenMiddleware, submitRateInfo)

// 获取用户的房源评价信息
router.get('/evaluate/:id', checkTokenMiddleware, getRateInfo)

module.exports = router